[HVM] ROMBIOS: reboot when we see Ctrl+Alt+Del
authorTim Deegan <Tim.Deegan@xensource.com>
Fri, 6 Jul 2007 10:17:01 +0000 (11:17 +0100)
committerTim Deegan <Tim.Deegan@xensource.com>
Fri, 6 Jul 2007 10:17:01 +0000 (11:17 +0100)
Signed-off-by: Tim Deegan <Tim.Deegan@xensource.com>
tools/firmware/rombios/rombios.c

index c0ce1f99817a152d1e7c57606da7909b83ec6f0d..49f5afdb0895e4e1d646b55774ae160f6ac10c4a 100644 (file)
@@ -4675,6 +4675,10 @@ int09_function(DI, SI, BP, SP, BX, DX, CX, AX)
       write_byte(0x0040, 0x18, mf2_flags);
       break;
 
+    case 0x53: /* Del */
+        if ((shift_flags & 0x0c) == 0x0c) /* Ctrl + Alt */
+            machine_reset();
+        /* Fall through */
     default:
       if (scancode & 0x80) return; /* toss key releases ... */
       if (scancode > MAX_SCAN_CODE) {